package oop2.Task1;

public class Dog {
    String name;
    Hedgehog a;

    public Dog(String name) {
        this.name = name;
    }

    public void bite() {
        System.out.println("谁咬我都会一嘴毛");
    }

    public void bite(Dog d) {
        System.out.println("我的名字叫:" + name);
        d.bite();
    }

    public void bite(Hedgehog b) {
        b.bite();
    }

    public void bite(GoodPerson c) {
        c.bite();
    }

}
